package com.indexingsystem.boss.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderPushMessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public OrderPushMessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPushMessageIdIsNull() {
            addCriterion("push_message_id is null");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdIsNotNull() {
            addCriterion("push_message_id is not null");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdEqualTo(String value) {
            addCriterion("push_message_id =", value, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdNotEqualTo(String value) {
            addCriterion("push_message_id <>", value, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdGreaterThan(String value) {
            addCriterion("push_message_id >", value, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdGreaterThanOrEqualTo(String value) {
            addCriterion("push_message_id >=", value, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdLessThan(String value) {
            addCriterion("push_message_id <", value, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdLessThanOrEqualTo(String value) {
            addCriterion("push_message_id <=", value, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdLike(String value) {
            addCriterion("push_message_id like", value, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdNotLike(String value) {
            addCriterion("push_message_id not like", value, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdIn(List<String> values) {
            addCriterion("push_message_id in", values, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdNotIn(List<String> values) {
            addCriterion("push_message_id not in", values, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdBetween(String value1, String value2) {
            addCriterion("push_message_id between", value1, value2, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andPushMessageIdNotBetween(String value1, String value2) {
            addCriterion("push_message_id not between", value1, value2, "pushMessageId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdIsNull() {
            addCriterion("order_process_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdIsNotNull() {
            addCriterion("order_process_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdEqualTo(String value) {
            addCriterion("order_process_id =", value, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdNotEqualTo(String value) {
            addCriterion("order_process_id <>", value, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdGreaterThan(String value) {
            addCriterion("order_process_id >", value, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_process_id >=", value, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdLessThan(String value) {
            addCriterion("order_process_id <", value, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdLessThanOrEqualTo(String value) {
            addCriterion("order_process_id <=", value, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdLike(String value) {
            addCriterion("order_process_id like", value, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdNotLike(String value) {
            addCriterion("order_process_id not like", value, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdIn(List<String> values) {
            addCriterion("order_process_id in", values, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdNotIn(List<String> values) {
            addCriterion("order_process_id not in", values, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdBetween(String value1, String value2) {
            addCriterion("order_process_id between", value1, value2, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderProcessIdNotBetween(String value1, String value2) {
            addCriterion("order_process_id not between", value1, value2, "orderProcessId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(String value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(String value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(String value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(String value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(String value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLike(String value) {
            addCriterion("order_id like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotLike(String value) {
            addCriterion("order_id not like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<String> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<String> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(String value1, String value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(String value1, String value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeIsNull() {
            addCriterion("push_datetime is null");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeIsNotNull() {
            addCriterion("push_datetime is not null");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeEqualTo(Date value) {
            addCriterion("push_datetime =", value, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeNotEqualTo(Date value) {
            addCriterion("push_datetime <>", value, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeGreaterThan(Date value) {
            addCriterion("push_datetime >", value, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("push_datetime >=", value, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeLessThan(Date value) {
            addCriterion("push_datetime <", value, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("push_datetime <=", value, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeIn(List<Date> values) {
            addCriterion("push_datetime in", values, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeNotIn(List<Date> values) {
            addCriterion("push_datetime not in", values, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeBetween(Date value1, Date value2) {
            addCriterion("push_datetime between", value1, value2, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andPushDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("push_datetime not between", value1, value2, "pushDatetime");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdIsNull() {
            addCriterion("receive_user_id is null");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdIsNotNull() {
            addCriterion("receive_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdEqualTo(String value) {
            addCriterion("receive_user_id =", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdNotEqualTo(String value) {
            addCriterion("receive_user_id <>", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdGreaterThan(String value) {
            addCriterion("receive_user_id >", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("receive_user_id >=", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdLessThan(String value) {
            addCriterion("receive_user_id <", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdLessThanOrEqualTo(String value) {
            addCriterion("receive_user_id <=", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdLike(String value) {
            addCriterion("receive_user_id like", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdNotLike(String value) {
            addCriterion("receive_user_id not like", value, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdIn(List<String> values) {
            addCriterion("receive_user_id in", values, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdNotIn(List<String> values) {
            addCriterion("receive_user_id not in", values, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdBetween(String value1, String value2) {
            addCriterion("receive_user_id between", value1, value2, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andReceiveUserIdNotBetween(String value1, String value2) {
            addCriterion("receive_user_id not between", value1, value2, "receiveUserId");
            return (Criteria) this;
        }

        public Criteria andPushMemoIsNull() {
            addCriterion("push_memo is null");
            return (Criteria) this;
        }

        public Criteria andPushMemoIsNotNull() {
            addCriterion("push_memo is not null");
            return (Criteria) this;
        }

        public Criteria andPushMemoEqualTo(String value) {
            addCriterion("push_memo =", value, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoNotEqualTo(String value) {
            addCriterion("push_memo <>", value, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoGreaterThan(String value) {
            addCriterion("push_memo >", value, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoGreaterThanOrEqualTo(String value) {
            addCriterion("push_memo >=", value, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoLessThan(String value) {
            addCriterion("push_memo <", value, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoLessThanOrEqualTo(String value) {
            addCriterion("push_memo <=", value, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoLike(String value) {
            addCriterion("push_memo like", value, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoNotLike(String value) {
            addCriterion("push_memo not like", value, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoIn(List<String> values) {
            addCriterion("push_memo in", values, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoNotIn(List<String> values) {
            addCriterion("push_memo not in", values, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoBetween(String value1, String value2) {
            addCriterion("push_memo between", value1, value2, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushMemoNotBetween(String value1, String value2) {
            addCriterion("push_memo not between", value1, value2, "pushMemo");
            return (Criteria) this;
        }

        public Criteria andPushStatusIsNull() {
            addCriterion("push_status is null");
            return (Criteria) this;
        }

        public Criteria andPushStatusIsNotNull() {
            addCriterion("push_status is not null");
            return (Criteria) this;
        }

        public Criteria andPushStatusEqualTo(Integer value) {
            addCriterion("push_status =", value, "pushStatus");
            return (Criteria) this;
        }

        public Criteria andPushStatusNotEqualTo(Integer value) {
            addCriterion("push_status <>", value, "pushStatus");
            return (Criteria) this;
        }

        public Criteria andPushStatusGreaterThan(Integer value) {
            addCriterion("push_status >", value, "pushStatus");
            return (Criteria) this;
        }

        public Criteria andPushStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("push_status >=", value, "pushStatus");
            return (Criteria) this;
        }

        public Criteria andPushStatusLessThan(Integer value) {
            addCriterion("push_status <", value, "pushStatus");
            return (Criteria) this;
        }

        public Criteria andPushStatusLessThanOrEqualTo(Integer value) {
            addCriterion("push_status <=", value, "pushStatus");
            return (Criteria) this;
        }

        public Criteria andPushStatusIn(List<Integer> values) {
            addCriterion("push_status in", values, "pushStatus");
            return (Criteria) this;
        }

        public Criteria andPushStatusNotIn(List<Integer> values) {
            addCriterion("push_status not in", values, "pushStatus");
            return (Criteria) this;
        }

        public Criteria andPushStatusBetween(Integer value1, Integer value2) {
            addCriterion("push_status between", value1, value2, "pushStatus");
            return (Criteria) this;
        }

        public Criteria andPushStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("push_status not between", value1, value2, "pushStatus");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}